using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._NetworkDiagramTools._Configuration
{
    /// <summary>
    /// <para>Import Diagram Template Definitions</para>
    /// <para>Imports a network diagram rule and layout definitions file (.ndbd), a network diagram layer definition file (.ndld), or both into an existing template.</para>
    /// <para>将网络逻辑示意图规则和布局定义文件 （.ndbd）、网络逻辑示意图图层定义文件 （.ndld） 或两者导入到现有模板中。</para>
    /// </summary>    
    [DisplayName("Import Diagram Template Definitions")]
    public class ImportDiagramTemplateDefinitions : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ImportDiagramTemplateDefinitions()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para>The utility network or trace network containing the diagram template to modify.</para>
        /// <para>包含要修改的逻辑示意图模板的公共设施网络或追踪网络。</para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para>The name of the diagram template onto which the definitions will be imported.</para>
        /// <para>将定义导入到的逻辑示意图模板的名称。</para>
        /// </param>
        public ImportDiagramTemplateDefinitions(object _in_utility_network, object _template_name)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
        }
        public override string ToolboxName => "Network Diagram Tools";

        public override string ToolName => "Import Diagram Template Definitions";

        public override string CallName => "nd.ImportDiagramTemplateDefinitions";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _ndbd_file, _ndld_file, _out_utility_network, _out_template_name];

        /// <summary>
        /// <para>Input Network</para>
        /// <para>The utility network or trace network containing the diagram template to modify.</para>
        /// <para>包含要修改的逻辑示意图模板的公共设施网络或追踪网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para>The name of the diagram template onto which the definitions will be imported.</para>
        /// <para>将定义导入到的逻辑示意图模板的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Rule and Layout Definitions File</para>
        /// <para><xdoc>
        ///   <para>The network diagram rule and layout definitions file (.ndbd) to import.</para>
        ///   <para>This file is the result of the execution of the Export Diagram Template Definitions tool on an existing template.</para>
        ///   <para>At least one of the two input file parameters must be completed; that is, either the network diagram rule and layout definitions file (.ndbd) or the network diagram layer definition file (.ndld) must be completed.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要导入的网络逻辑示意图规则和布局定义文件 （.ndbd）。</para>
        ///   <para>此文件是在现有模板上执行导出逻辑示意图模板定义工具的结果。</para>
        ///   <para>必须完成两个输入文件参数中的至少一个;也就是说，必须完成网络逻辑示意图规则和布局定义文件 （.ndbd） 或网络逻辑示意图图层定义文件 （.ndld）。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Rule and Layout Definitions File")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _ndbd_file { get; set; } = null;


        /// <summary>
        /// <para>Diagram Layer Definition File</para>
        /// <para><xdoc>
        ///   <para>The network diagram layer definition file (.ndld) to import.</para>
        ///   <para>This file is the result of the execution of the Export Diagram Template Definitions or Export Diagram Layer Definition geoprocessing tool on an existing template.</para>
        ///   <para>At least one of the two input file parameters must be completed; that is, either the network diagram rule and layout definitions file (.ndbd) or the network diagram layer definition file (.ndld) must be completed.</para>
        ///   <para>When a diagram layer definition does not yet exist for the input diagram template and this parameter is not specified or loads an empty .ndld file, a default diagram layer definition is systematically initialized on the template.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要导入的网络逻辑示意图图层定义文件 （.ndld）。</para>
        ///   <para>此文件是在现有模板上执行导出逻辑示意图模板定义或导出逻辑示意图图层定义地理处理工具的结果。</para>
        ///   <para>必须完成两个输入文件参数中的至少一个;也就是说，必须完成网络逻辑示意图规则和布局定义文件 （.ndbd） 或网络逻辑示意图图层定义文件 （.ndld）。</para>
        ///   <para>如果输入逻辑示意图模板尚不存在逻辑示意图图层定义，并且未指定此参数或加载空的 .ndld 文件，则会在模板上系统地初始化默认逻辑示意图图层定义。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Diagram Layer Definition File")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _ndld_file { get; set; } = null;


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        public ImportDiagramTemplateDefinitions SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}